﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TrackNumber.aspx.cs" Inherits="TARS.Customer.TrickNumber" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
                </asp:ScriptReference>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
                </asp:ScriptReference>
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
    <div>
    
        <asp:Label ID="Label1" runat="server" Text="Secret Number :"></asp:Label>
    
        <telerik:RadTextBox ID="RadTextBox1" Runat="server" Width="150px">
        </telerik:RadTextBox>
        <telerik:RadButton ID="RadButton1" runat="server" OnClick="RadButton1_Click" Text="Submit">
        </telerik:RadButton>
    
    </div>
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" CellSpacing="0" DataSourceID="SqlDataSource1" GridLines="None" ShowGroupPanel="True" Visible="False">
            <ClientSettings AllowDragToGroup="True">
            </ClientSettings>
<MasterTableView autogeneratecolumns="False" datakeynames="ID" datasourceid="SqlDataSource1">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridTemplateColumn DataField="ID" DataType="System.Guid" FilterControlAltText="Filter ID column" HeaderText="ID" SortExpression="ID" UniqueName="ID" Visible="False">
            <EditItemTemplate>
                <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="DeliveryName" FilterControlAltText="Filter DeliveryName column" HeaderText="DeliveryName" ReadOnly="True" SortExpression="DeliveryName" UniqueName="DeliveryName" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="AddressDelivery" FilterControlAltText="Filter AddressDelivery column" HeaderText="AddressDelivery" ReadOnly="True" SortExpression="AddressDelivery" UniqueName="AddressDelivery" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Delivery_ContactNumber" FilterControlAltText="Filter Delivery_ContactNumber column" HeaderText="Delivery_ContactNumber" SortExpression="Delivery_ContactNumber" UniqueName="Delivery_ContactNumber" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CustomerName" FilterControlAltText="Filter CustomerName column" HeaderText="CustomerName" ReadOnly="True" SortExpression="CustomerName" UniqueName="CustomerName" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="AddressCustomer" FilterControlAltText="Filter AddressCustomer column" HeaderText="AddressCustomer" ReadOnly="True" SortExpression="AddressCustomer" UniqueName="AddressCustomer" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Customer_ContactNumber" FilterControlAltText="Filter Customer_ContactNumber column" HeaderText="Customer_ContactNumber" SortExpression="Customer_ContactNumber" UniqueName="Customer_ContactNumber" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Customer_Email" FilterControlAltText="Filter Customer_Email column" HeaderText="Customer_Email" SortExpression="Customer_Email" UniqueName="Customer_Email" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TotalWeight" DataType="System.Double" FilterControlAltText="Filter TotalWeight column" HeaderText="TotalWeight" SortExpression="TotalWeight" UniqueName="TotalWeight">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TotalMoney" DataType="System.Decimal" FilterControlAltText="Filter TotalMoney column" HeaderText="TotalMoney" SortExpression="TotalMoney" UniqueName="TotalMoney">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="UpdateTime" DataType="System.DateTime" FilterControlAltText="Filter UpdateTime column" HeaderText="UpdateTime" SortExpression="UpdateTime" UniqueName="UpdateTime">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ZoneName" FilterControlAltText="Filter ZoneName column" HeaderText="ZoneName" SortExpression="ZoneName" UniqueName="ZoneName" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CarrierTypeName" FilterControlAltText="Filter CarrierTypeName column" HeaderText="CarrierTypeName" SortExpression="CarrierTypeName" UniqueName="CarrierTypeName" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DropZoneName" FilterControlAltText="Filter DropZoneName column" HeaderText="DropZoneName" SortExpression="DropZoneName" UniqueName="DropZoneName" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Prices" FilterControlAltText="Filter Prices column" HeaderText="Prices" SortExpression="Prices" UniqueName="Prices" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CreatedTime" DataType="System.DateTime" FilterControlAltText="Filter CreatedTime column" HeaderText="CreatedTime" SortExpression="CreatedTime" UniqueName="CreatedTime" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DeliveryStatus" FilterControlAltText="Filter DeliveryStatus column" HeaderText="DeliveryStatus" SortExpression="DeliveryStatus" UniqueName="DeliveryStatus">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmployeeInfoID" DataType="System.Guid" FilterControlAltText="Filter EmployeeInfoID column" HeaderText="EmployeeInfoID" SortExpression="EmployeeInfoID" UniqueName="EmployeeInfoID" Visible="False">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn DataField="ScretNumber" DataType="System.Guid" FilterControlAltText="Filter ScretNumber column" HeaderText="ScretNumber" SortExpression="ScretNumber" UniqueName="ScretNumber" Visible="False">
            <EditItemTemplate>
                <asp:TextBox ID="ScretNumberTextBox" runat="server" Text='<%# Bind("ScretNumber") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="ScretNumberLabel" runat="server" Text='<%# Eval("ScretNumber") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
    <NestedViewTemplate>
    <table>
        <hr />
        <tr>
            <td>
                <strong>Delivery Name :</strong><td><%# Eval("DeliveryName") %></td>
            </td>
            <td>
                <strong>Customer Name :</strong><td><%# Eval("CustomerName") %></td>
            </td>    
        </tr>
        <tr>
            <td>
                <strong>Address Delivery :</strong><td><%# Eval("AddressDelivery") %></td>
            </td>
            <td>
                <strong>Address Customer :</strong><td><%# Eval("AddressCustomer") %></td>
            </td>
        </tr>
        <tr>
            <td>
                <strong>Delivery Contact Number :</strong><td><%# Eval("Delivery_ContactNumber") %></td>
            </td>
            <td>
                <strong>Customer Contact Number :</strong><td><%# Eval("Customer_ContactNumber") %></td>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <td>
                    <strong>Customer Email :</strong><td><%# Eval("Customer_Email") %></td>
                </td>
            </td>
        </tr>
    </table>
</NestedViewTemplate>
<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
</MasterTableView>

<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>

<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TARSDelivery_EprojectConnectionString3 %>" SelectCommand="SELECT * FROM [v_DetailDelivery] WHERE ([ScretNumber] = @ScretNumber)">
            <SelectParameters>
                <asp:ControlParameter ControlID="RadTextBox1" Name="ScretNumber" PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </form>
</body>
</html>
